package cn.chenxhcloud.myvv;

import org.voovan.http.client.HttpClient;
import org.voovan.network.exception.ReadMessageException;
import org.voovan.network.exception.SendMessageException;
import org.voovan.tools.log.Logger;

public class HttpClientDemo {
	/**
	 * @param args
	 * @throws SendMessageException
	 * @throws ReadMessageException
	 */
	public static void main(String[] args) throws SendMessageException, ReadMessageException {
		HttpClient http = new HttpClient("http://www.oschina.net", "UTF-8", 10000);
		Logger.simple(http.send().body().getBodyString());
		Logger.simple(http.send("/news/76652/redisson-2-3-0").body().getBodyString());
		http.close();
	}
}
